/**
 * 
 */
package com.alstudio.pojo.module.server;

import com.alstudio.app.ALLocalEnv;

/**
 * 一些缺省的http请求url和serverlet
 * 
 * @author alonso lee
 * 
 */
public class Serverlet {
	// 提交易宝充值的url
	public static final String YEE_PAY_SERVERLET_URL = "http://116.254.203.69:8280/Charge/yeepay.action";
	// 提交支付宝充值的url
	public static final String ALIPAY_SERVERLET_URL = "http://116.254.203.69:8280/Charge/alipay.action";

	public static final String YEE_PAY_SERVERLET_SUFIX = "/Charge/yeepay.action";
	public static final String ALIPAY_SERVERLET_SUFIX = "/Charge/alipay.action";

	// 上传图片
	public static final String UPLOAD_PIC_SERVERLET = "/MediaServerMblove/servlet/PhotoServlet";
	// 上传语音
	public static final String UPLOAD_AUDIO_SERVERLET = "/MediaServerMblove/servlet/AudioServlet";

	public static String getUploadServerUrl(String serverlet) {
		String servletUrl = "http://"
				+ ALLocalEnv.getLocalEnv().getVersionConfig().getServerInfo()
						.getMediaServerIp()
				+ ":"
				+ ALLocalEnv.getLocalEnv().getVersionConfig().getServerInfo()
						.getMediaServerPort() + serverlet;
		return servletUrl;
	}

}
